package com.aabte.design.pattern.behavioral.mediator;

public class Test {
    public static void main(String[] args) {

        User tom = new User("tom");
        User jack = new User("jack");

        tom.sendMessage("Nice to meet you.");

        jack.sendMessage("Nice to meet you too.");

        /*
        Wed Mar 06 20:10:03 CST 2019 [tom] : Nice to meet you.
        Wed Mar 06 20:10:03 CST 2019 [jack] : Nice to meet you too.
         */
    }
}
